package com.ruoyi.teaching.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teaching.mapper.JPositionMapper;
import com.ruoyi.teaching.domain.JPosition;
import com.ruoyi.teaching.service.IJPositionService;

/**
 * 省市县镇村数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-22
 */
@Service
public class JPositionServiceImpl implements IJPositionService 
{
    @Autowired
    private JPositionMapper jPositionMapper;

    /**
     * 查询省市县镇村数据
     * 
     * @param id 省市县镇村数据主键
     * @return 省市县镇村数据
     */
    @Override
    public JPosition selectJPositionById(Long id)
    {
        return jPositionMapper.selectJPositionById(id);
    }
    @Override
    public List<JPosition> selectProvinceId(){
        return jPositionMapper.selectProvinceId();
    }
    /**
     * 查询省市县镇村数据列表
     * 
     * @param jPosition 省市县镇村数据
     * @return 省市县镇村数据
     */
    @Override
    public List<JPosition> selectJPositionList(JPosition jPosition)
    {
        return jPositionMapper.selectJPositionList(jPosition);
    }

    /**
     * 新增省市县镇村数据
     * 
     * @param jPosition 省市县镇村数据
     * @return 结果
     */
    @Override
    public int insertJPosition(JPosition jPosition)
    {
        return jPositionMapper.insertJPosition(jPosition);
    }

    /**
     * 修改省市县镇村数据
     * 
     * @param jPosition 省市县镇村数据
     * @return 结果
     */
    @Override
    public int updateJPosition(JPosition jPosition)
    {
        return jPositionMapper.updateJPosition(jPosition);
    }

    /**
     * 批量删除省市县镇村数据
     * 
     * @param ids 需要删除的省市县镇村数据主键
     * @return 结果
     */
    @Override
    public int deleteJPositionByIds(Long[] ids)
    {
        return jPositionMapper.deleteJPositionByIds(ids);
    }

    /**
     * 删除省市县镇村数据信息
     * 
     * @param id 省市县镇村数据主键
     * @return 结果
     */
    @Override
    public int deleteJPositionById(Long id)
    {
        return jPositionMapper.deleteJPositionById(id);
    }
}
